<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户详情</title>
    <%@ include file="../headJs.jsp"%>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/allcss/register.css" />

</head>
<body id="log" >

<div class="login-wrapper">

    <div class="login-header">
        <img src="../static/images/logo_03.png">
    </div>

    <div class=" login-body">
        <div class="layui-card">
            <div class="layui-card-header">
                <i class="layui-icon layui-icon-friends"></i>&nbsp;&nbsp;用户详情
            </div>
            <form:form modelAttribute="user" class="layui-card-body layui-form layui-form-pane" >
                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-user"></i></label>
                    <div class="layui-input-block">
                        <form:input type="text" lay-verify="required" placeholder="昵称"
                               class="layui-input"  path="name" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-username"></i></label>
                    <div class="layui-input-block">
                        <form:input path="username" type="text" lay-verify="required" placeholder="账号"
                               class="layui-input" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-tree"></i></label>
                    <div class="layui-input-block">
                        <form:input path="age" type="number" lay-verify="required" placeholder="年龄" min="1" max="300"
                               class="layui-input" />
                    </div>
                </div>

                <%--<div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-headset"></i></label>
                    <div class="layui-input-block">
                        <input type="radio" path="sex" value="male" title="男" />
                        <input type="radio" path="sex" value="female" title="女" checked/>
                    </div>
                </div>
--%>
                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-cellphone"></i></label>
                    <div class="layui-input-block">
                        <form:input path="phone" type="text" lay-verify="required" placeholder="手机号" maxlength="11"
                               class="layui-input" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-template-1"></i></label>
                    <div class="layui-input-block">
                        <form:input path="classno" type="text" lay-verify="required" placeholder="班级" maxlength="20"
                               class="layui-input" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-list"></i></label>
                    <div class="layui-input-block">
                        <form:input path="sno" type="text" lay-verify="required" placeholder="学号" maxlength="20"
                               class="layui-input"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon layui-icon-tabs"></i></label>
                    <div class="layui-input-block">
                        <form:input path="idcard" type="text" lay-verify="required" placeholder="身份证号" maxlength="18"
                               class="layui-input"/>
                    </div>
                </div>


            </form:form>
        </div>
    </div>

</div>

<script>
    $("input").attr("readonly","readonly");
</script>
</body>
</html>
